/********************************************************************************
 *    Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH    *
 *                                                                              *
 *              This software is distributed under the terms of the             *
 *              GNU Lesser General Public Licence (LGPL) version 3,             *
 *                  copied verbatim in the file "LICENSE"                       *
 ********************************************************************************/
#ifndef HIMUSICWAVEEVENT_H
#define HIMUSICWAVEEVENT_H

#include "TObject.h"

class HiMusicWaveEvent : public TObject
{
private:
    Float_t fPulseHeight;
    Float_t fArrivalTime;
    Float_t fRisingTime;
    Float_t fDecayTime;
    Float_t fPedestal;
    Float_t fChi2_ov_ndf;

public:
    HiMusicWaveEvent();
    HiMusicWaveEvent(Float_t Ap, Float_t t0, Float_t tr, Float_t td, Float_t ped, Float_t ch2_ov_ndf = -1);
    HiMusicWaveEvent(const HiMusicWaveEvent &event);
    ~HiMusicWaveEvent();

    void Reset();
    Float_t GetPulseHeight() { return fPulseHeight; }
    Float_t GetArrivalTime() { return fArrivalTime; }
    Float_t GetRisingTime() { return fRisingTime; }
    Float_t GetDecayTime() { return fDecayTime; }
    Float_t GetPedestal() { return fPedestal; }
    Float_t GetChi2OvNdf() { return fChi2_ov_ndf; }

    void SetPulseHeight(Float_t p) { fPulseHeight = p; }
    void SetArrivalTime(Float_t a) { fArrivalTime = a; }
    void SetRisingTime(Float_t r) { fRisingTime = r; }
    void SetDecayTime(Float_t d) { fDecayTime = d; }
    void SetPedestal(Float_t p) { fPedestal = p; }
    void SetChi2OvNdf(Float_t c) { fChi2_ov_ndf = c; }

    ClassDef(HiMusicWaveEvent, 1);
};

#endif // !HIMUSICWAVEEVENT_H